import unittest
from common.init_log import init_logging_config

from htmltestreport import HTMLTestReport

from config import BASE_DIR

if __name__ == '__main__':
    init_logging_config(BASE_DIR + '/log/ihrm.log')

    suite = unittest.defaultTestLoader.discover(BASE_DIR + '/scripts', 'test*')

    report = HTMLTestReport(BASE_DIR + '/report/report.html', title="ihrm测试报告", description="V1.0")

    report.run(suite)
